 package earogya.pharmacy.pharmacy;

import java.sql.Date;
import java.sql.Time;

/*class PurchaseDrugs
 * 
 * contains the attributes considered when a new drug is purchased to the pharmacy
 * 
 *  
 * */

public class PurchaseDrugs {
	
	private int purchaseId;
	private int drugId;
	private int quantity;
	private double price;
	private Date purchaseDate, paymentDate;
	private Time purchaseTime, paymentTime;
	
	public PurchaseDrugs(){
		
	}
	
	public PurchaseDrugs(int drugid, int quantity, double price){
		this.drugId = drugid;
		this.price = price;
		this.quantity = quantity;
	}
	
	public PurchaseDrugs(int drugid, int quantity, double price, Date purchaseDate, Time purchaseTime){
		this.drugId = drugid;
		this.price = price;
		this.quantity = quantity;
		this.purchaseDate = purchaseDate;
		this.purchaseTime = purchaseTime;
	}
	
	public PurchaseDrugs(int drugid, int quantity, double price, Date purchaseDate, Time purchaseTime, Date paymentDate, Time paymentTime){
		this.drugId = drugid;
		this.price = price;
		this.quantity = quantity;
		this.purchaseDate = purchaseDate;
		this.purchaseTime = purchaseTime;
		this.paymentDate = paymentDate;
		this.paymentTime = paymentTime;
	}
	
	public int getPurchaseId(){
		return purchaseId;
	}
	
	public void setPurchaseId(int id){
		purchaseId = id;
	}
	
	public void setDrugId(int did){
		drugId = did;
	}
	
	public int getDrugId(){
		return drugId;
	}
	
	public void setQuantity(int qunt){
		quantity = qunt;
	}
	
	public int getQuantity(){
		return quantity;
	}
	
	public void setPurchaseDate(Date pdate){
		purchaseDate = pdate;
	}
	
	public Date getPurchaseDate(){
		return purchaseDate;
	}
	
	public void setPurchaseTime(Time ptime){
		purchaseTime = ptime;
	}
	
	public Time getPurchaseTime(){
		return purchaseTime;
	}
	
	public void setPrice(double pprice){
		price = pprice;
	}
	
	public double getPrice(){
		return price;
	}
	
	public void setPaymentDate(Date pdate){
		paymentDate = pdate;
	}
	
	public Date getPaymentDate(){
		return paymentDate;
	}
	
	public void setPaymentTime(Time ptime){
		paymentTime = ptime;
	}
	
	public Time getPaymentTime(){
		return paymentTime;
	}
}
